// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_servermessages
// * CreateDate    : 2014-06-05 18:30:01
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:01
// * LastChanger   : 2014-06-05 18:30:01
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmServermessagesEntity : EntityBase
    {
        public HmServermessagesTable TableSchema
        {
            get
            {
                return HmServermessagesTable.Current;
            }
		}
		
		public HmServermessagesEntity()
        {

        }
		
		public HmServermessagesEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Smid = Convert.ToInt32(CommonFunctions.ToObject(dr["smid"]));
			this.Smname = Convert.ToString(CommonFunctions.ToObject(dr["smname"]));
			this.Smtext = Convert.ToString(CommonFunctions.ToObject(dr["smtext"]));
        }
		
		public HmServermessagesEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Smid = Convert.ToInt32(CommonFunctions.ToObject(dr["smid"]));
			this.Smname = Convert.ToString(CommonFunctions.ToObject(dr["smname"]));
			this.Smtext = Convert.ToString(CommonFunctions.ToObject(dr["smtext"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmServermessagesTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Smid
        {
            get { return Convert.ToInt32(GetData(HmServermessagesTable.C_smid)); }
            set { SetData(HmServermessagesTable.C_smid, value); }
        }
		
        [DataMember]
        public string Smname
        {
            get { return Convert.ToString(GetData(HmServermessagesTable.C_smname)); }
            set { SetData(HmServermessagesTable.C_smname, value); }
        }
		
        [DataMember]
        public string Smtext
        {
            get { return Convert.ToString(GetData(HmServermessagesTable.C_smtext)); }
            set { SetData(HmServermessagesTable.C_smtext, value); }
        }
		
		#endregion
	}
	
	
}	

